﻿namespace FFF.Test.Entity.FW
{
    using System;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using Abp.Domain.Entities;
    using Abp.AutoMapper;
    using FFF.Test.Entity.FW.View;
    using FFF.Test.Entity.Framework.Entity;

	/// <summary>
    /// 公司组织表(树)
    /// </summary>
	[Table("FW_BuUnit")]
    [Display(Name = "公司组织表(树)", Description = "公司组织表(树)")]
    [AutoMapFrom(typeof(ViewFWBuUnit))] 
    public partial class FWBuUnitEntity : BaseTreeEntity<Guid>
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Column("BuUnitNewGUID")]
        [Display(Name = "公司组织表(树)主键", Description = "公司组织表(树)主键")]
		[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public override Guid Id { get; set; }

		/// <summary>
        /// 组织名称
        /// </summary>
		[Display(Name = "组织名称", Description = "组织名称")]
        [Column("BuUnitName")]
		[StringLength(128)]
        public string BuUnitName { get; set; }   

		/// <summary>
        /// 组织编码
        /// </summary>
		[Display(Name = "组织编码", Description = "组织编码")]
        [Column("BuUnitCode")]
		[StringLength(128)]
        public string BuUnitCode { get; set; }   

		/// <summary>
        /// 网址
        /// </summary>
		[Display(Name = "网址", Description = "网址")]
        [Column("BuUnitWebSiteUrl")]
		[StringLength(128)]
        public string BuUnitWebSiteUrl { get; set; }   

		/// <summary>
        /// 传真
        /// </summary>
		[Display(Name = "传真", Description = "传真")]
        [Column("BuUnitFax")]
		[StringLength(128)]
        public string BuUnitFax { get; set; }   

		/// <summary>
        /// 公司地址
        /// </summary>
		[Display(Name = "公司地址", Description = "公司地址")]
        [Column("BuUnitAddress")]
		[StringLength(128)]
        public string BuUnitAddress { get; set; }   

		/// <summary>
        /// 法人代表
        /// </summary>
		[Display(Name = "法人代表", Description = "法人代表")]
        [Column("BuUnitLegalPerson")]
		[StringLength(128)]
        public string BuUnitLegalPerson { get; set; }   

		/// <summary>
        /// 说明
        /// </summary>
		[Display(Name = "说明", Description = "说明")]
        [Column("BuUnitRemark")]
		[StringLength(99999)]
        public string BuUnitRemark { get; set; }   

		/// <summary>
        /// 是否公司
        /// </summary>
		[Display(Name = "是否公司", Description = "是否公司")]
        [Column("IsCompanyBuUnit")]
        public byte IsCompanyBuUnit { get; set; }   

		/// <summary>
        /// 企业GUID
        /// </summary>
		[Display(Name = "企业GUID", Description = "企业GUID")]
        [Column("CompanyGUID")]
        public Guid? CompanyGUID { get; set; }   
    }
}
